﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ADONETDataServicesExtension.Utils;

namespace ADONETDataServicesExtension
{
    public static class RequestTargetSource
    {
        internal const string FrameworkTypeName = "System.Data.Services.RequestTargetSource";

        public static readonly int EntitySet;
        public static readonly int None;
        public static readonly int Property;
        public static readonly int ServiceOperation;

        static RequestTargetSource()
        {
            EntitySet = ReflectionHelper.GetFrameworkType(FrameworkTypeName).GetEnumValueFromName("EntitySet");
            None = ReflectionHelper.GetFrameworkType(FrameworkTypeName).GetEnumValueFromName("None");
            Property = ReflectionHelper.GetFrameworkType(FrameworkTypeName).GetEnumValueFromName("Property");
            ServiceOperation = ReflectionHelper.GetFrameworkType(FrameworkTypeName).GetEnumValueFromName("ServiceOperation");
        }
    }
}
